# Contributor: Luca Weiss <luca@lucaweiss.eu>
# Maintainer: Luca Weiss <luca@lucaweiss.eu>
pkgname=fluster
pkgver=0.1.0_git20231211
_commit="d9106f57aff656c258c1a076952817c61909c65b"
pkgrel=2
pkgdesc="Testing framework for decoders conformance"
url="https://github.com/fluendo/fluster"
arch="noarch"
license="LGPL-3.0-or-later"
# optional dependencies for runtime:
# * aom
# * dav1d
# * ffmpeg
# * gstreamer-tools
# * libvpx-utils
makedepends="py3-gpep517 py3-setuptools py3-wheel"
subpackages="$pkgname-pyc"
source="https://github.com/fluendo/fluster/archive/$_commit/fluster-$_commit.tar.gz"
builddir="$srcdir/fluster-$_commit"
options="!check" # no test suite

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
	mkdir -p "$pkgdir"/usr/share/fluster/
	cp -r test_suites "$pkgdir"/usr/share/fluster/
}

sha512sums="
3943e85e26f58dc34344907a5dd5c67e1279582927bbcd5464af060efa18a24da45a4a06fc5fbad1ae6d7dce4268ad1db8454c552590eebf33d296dafd63e798  fluster-d9106f57aff656c258c1a076952817c61909c65b.tar.gz
"
